package br.ita.battlefarm;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class MainActivity extends Activity {
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.menu);

        findViewById(R.id.start_game).setOnClickListener(
                new OnClickListener() {
            public void onClick(View v) {
                startGame();
            }
        });

        findViewById(R.id.exit_game).setOnClickListener(
                new OnClickListener() {
            public void onClick(View v) {
                finish();
            }
        });
    }

    private void startGame() {
        Intent i = new Intent(this, BattleFarmActivity.class);
        startActivity(i);
    }
}
